/**
 * 
 */
package com.itinsys.enma.dao;

import java.sql.Time;
import java.util.List;

import net.sf.ehcache.ObjectExistsException;

import com.itinsys.enma.domain.PriorityEnvironment;
import com.itinsys.enma.domain.Shift;

/**
 * @author pferraz
 * 
 */
public interface ShiftDAO {
	
	public Shift getById(String shiftId) throws ObjectExistsException;

	public List<Shift> getAll();

	public Shift getShiftByHourRange(Time startHour, Time endHour);

	public boolean addShift(Shift shift);

	public boolean updateShift(Shift shift);

	public boolean deleteShift(Shift shift);

	public List<PriorityEnvironment> getPriorityEnvironmentByShifts(int id);

	public Shift getByDesc(String description);

	public boolean validateShiftRange(int id,Time startTime, Time endTime);
	
}
